import request from '@/utils/request'

// 查询接触网开关记录列表
export function listCatenary_switch_record(query) {
  return request({
    url: '/system/catenary_switch_record/list',
    method: 'get',
    params: query
  })
}

// 查询接触网开关记录详细
export function getCatenary_switch_record(id) {
  return request({
    url: '/system/catenary_switch_record/' + id,
    method: 'get'
  })
}

// 新增接触网开关记录
export function addCatenary_switch_record(data) {
  return request({
    url: '/system/catenary_switch_record',
    method: 'post',
    data: data
  })
}

// 修改接触网开关记录
export function updateCatenary_switch_record(data) {
  return request({
    url: '/system/catenary_switch_record',
    method: 'put',
    data: data
  })
}

// 删除接触网开关记录
export function delCatenary_switch_record(id) {
  return request({
    url: '/system/catenary_switch_record/' + id,
    method: 'delete'
  })
}
